import { post, download } from '@/http/request'

/**
 * 观测设备分页查询
 * @param {*} params
 * @returns
 */
export const zsyPageList = params => {
    return post({
        url: '/water/device/zsy/pageList',
        params
    })
}

/**
 * 观测设备不带分页查询
 * @param {*} params
 * @returns
 */
export function zsyListAll(params) {
    return post({
        url: '/water/device/zsy/listAll',
        params
    })
}

/**
 * 观测设备新增数据
 * @param {*} params
 * @returns
 */
export const zsyAdd = params => {
    return post({
        url: '/water/device/zsy/save',
        params
    })
}

/**
 * 观测设备修改数据
 * @param {*} params
 * @returns
 */
export const zsyUpdate = params => {
    return post({
        url: '/water/device/zsy/update',
        params
    })
}

/**
 * 观测设备删除数据
 * @param {*} params
 * @returns
 */
export const zsyDel = params => {
    return post({
        url: '/water/device/zsy/delete',
        params
    })
}

/**
 * 导出数据
 * @param {*} params
 * @returns
 */
export const exportExcel = params => {
    return download({
        url: '/water/device/zsy/exportExcel',
        params
    })
}

/**
 * 导出数据
 * @param {*} params
 * @returns
 */
export const importExcel = params => {
    return download({
        url: '/water/device/zsy/exportExcel',
        params
    })
}

/**
 * 模板下载
 * @param {*} params
 * @returns
 */
export const downloadDeviceTemplate = params => {
    return download({
        url: '/water/device/zsy/downloadTemplate',
        params
    })
}
